package com.ruoyi.service.impl;

import com.ruoyi.domain.BaseSrequipmentInfo;
import com.ruoyi.mapper.BaseSrequipmentInfoMapper;
import com.ruoyi.service.IBaseSrequipmentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 收发设备Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-04
 */
@Service
public class BaseSrequipmentInfoServiceImpl implements IBaseSrequipmentInfoService
{
    @Autowired
    private BaseSrequipmentInfoMapper baseSrequipmentInfoMapper;

    /**
     * 查询收发设备
     * 
     * @param id 收发设备主键
     * @return 收发设备
     */
    @Override
    public BaseSrequipmentInfo selectBaseSrequipmentInfoById(Long id)
    {
        return baseSrequipmentInfoMapper.selectBaseSrequipmentInfoById(id);
    }

    /**
     * 查询收发设备列表
     * 
     * @param baseSrequipmentInfo 收发设备
     * @return 收发设备
     */
    @Override
    public List<BaseSrequipmentInfo> selectBaseSrequipmentInfoList(BaseSrequipmentInfo baseSrequipmentInfo)
    {
        return baseSrequipmentInfoMapper.selectBaseSrequipmentInfoList(baseSrequipmentInfo);
    }

    /**
     * 新增收发设备
     * 
     * @param baseSrequipmentInfo 收发设备
     * @return 结果
     */
    @Override
    public int insertBaseSrequipmentInfo(BaseSrequipmentInfo baseSrequipmentInfo)
    {
        return baseSrequipmentInfoMapper.insertBaseSrequipmentInfo(baseSrequipmentInfo);
    }

    /**
     * 修改收发设备
     * 
     * @param baseSrequipmentInfo 收发设备
     * @return 结果
     */
    @Override
    public int updateBaseSrequipmentInfo(BaseSrequipmentInfo baseSrequipmentInfo)
    {
        return baseSrequipmentInfoMapper.updateBaseSrequipmentInfo(baseSrequipmentInfo);
    }

    /**
     * 批量删除收发设备
     * 
     * @param ids 需要删除的收发设备主键
     * @return 结果
     */
    @Override
    public int deleteBaseSrequipmentInfoByIds(Long[] ids)
    {
        return baseSrequipmentInfoMapper.deleteBaseSrequipmentInfoByIds(ids);
    }

    /**
     * 删除收发设备信息
     * 
     * @param id 收发设备主键
     * @return 结果
     */
    @Override
    public int deleteBaseSrequipmentInfoById(Long id)
    {
        return baseSrequipmentInfoMapper.deleteBaseSrequipmentInfoById(id);
    }
}
